package com.example.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 *      二级分类
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@Getter
@Setter
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class CateLog2Vo {

    /** 父分类ID **/
    private String catelog1Id;
    /** 三级子分类 **/
    private List<CateLog3Vo> catelog3List;
    private String name;
    private String id;

    /**
     * 三级分类
     */
    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CateLog3Vo {
        /** 父分类ID **/
        private String catelog2Id;
        private String name;
        private String id;
    }
}
